From: Georges Basile Stavracas Neto Date: Thu, 24 Sep 2020 17:16:48 +0000 (-0300) Subject: appDisplay: Save pages when folder apps change X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~655^2^2~6 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=59549e0b1357ac11ed25a068d134118ae6cb4ef3;p=gnome-shell.git appDisplay: Save pages when folder apps change After dragging an icon to inside a folder, we do not save the grid layout, leaving the icon's position stored when it actually isn't there anymore. Fix that by saving pages whenever folder apps change. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1447 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 8979d7e57..840d4fd3e 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -1097,7 +1097,10 @@ class AppDisplay extends BaseAppView { let icon = this._items.get(id); if (!icon) { icon = new FolderIcon(id, path, this); - icon.connect('apps-changed', this._redisplay.bind(this)); + icon.connect('apps-changed', () => { + this._redisplay(); + this._savePages(); + }); } // Don't try to display empty folders